.scroll-bar {
    display: flex;
    align-items: center;
    height: var(--height);
    background-color: #ffffff;
    box-shadow: 0px 0px 1px 0px #ededed;
    border: 1px solid #ededed;
    border-left: none;
    border-right: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: var(--position);
    top: var(--offsetTop);
    z-index: 100;

    .list {
        height: 100%;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;

        .list-item {
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 var(--itemGap) 0 var(--itemGap);
            white-space: nowrap;
            background: #ffffff;
            font-size: var(--fontSize);
            font-weight: 400;
            color: #282828;
        }

        // 固定首个元素
        .fixation {
            position: sticky;
            left: 0;
            background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
            box-shadow: 4px 0px 8px 0px rgba(48, 48, 48, 0.15);
            z-index: 10;
        }

        .active {
            color: var(--color);

            span {
                height: var(--height);
                line-height: var(--height);
                position: relative;
                &::after {
                    content: '';
                    width: 100%;
                    height: 3px;
                    background: var(--color);
                    border-radius: 2px;
                    position: absolute;
                    bottom: var(--bottom);
                    left: 0;
                }
            }
        }

        &::-webkit-scrollbar {
            display: none;
        }
    }

    .right {
        min-width: 40px;
        height: 100%;
        background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
        box-shadow: -4px 0px 8px 0px rgba(48, 48, 48, 0.15);
        position: relative;
    }
}
